package fr.cdj.thebox.client.content.ui;

import com.google.gwt.user.client.ui.FlowPanel;
import com.google.inject.Inject;
import com.google.inject.Provider;

import fr.cdj.thebox.client.resources.TheboxBundle;
import fr.cdj.thebox.client.utils.Icon;

public class ContentDisplayImpl extends FlowPanel implements ContentDisplay {

	@Inject
	public ContentDisplayImpl(TheboxBundle resources, Provider<Icon> iconProvider) {
		this.setStyleName(resources.getStyle().content());
	}

	@Override
	public void addFileItem(FileItemDisplay fileItem) {
		this.add(fileItem.asWidget());
	}

	@Override
	public void clearItems() {
		this.clear();
	}

}
